/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ahuy.edu.basic;

import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author Administrator
 */
public class MyPannel extends JFrame{
    public static void main(String[] args) {
        JPanel pn1 = new JPanel();
        pn1.setLayout(new FlowLayout());
        pn1.setBackground(Color.RED);
    }
        public MyPannel(){
            JPanel pn = new JPanel();
            JButton bt1= new JButton("Nut so 1");
            JButton bt2= new JButton("Nut so 2");
            JButton bt3= new JButton("Nut so 3");
            JButton bt4= new JButton("Nut so 4");
            JButton bt5= new JButton("Nut so 5");
            pn.add(bt1);
            pn.add(bt2);
            pn.add(bt3);
            pn.add(bt4);
            pn.add(bt5);
        
           this.add(pn);
    }
                
    }
    
    

